using System;
using System.IO;

namespace WebMonitor.Http {
    public interface IHttpServerUtility {
        string MachineName { get; }

        int ScriptTimeout { get; set; }

        object CreateObject(string progID);

        object CreateObject(Type type);

        object CreateObjectFromClsid(string clsid);

        string MapPath(string path);

        Exception GetLastError();

        void ClearError();

        void Execute(string path);

        void Execute(string path, TextWriter writer);

        void Transfer(string path, bool preserveForm);

        void Transfer(string path);

        string HtmlDecode(string s);

        void HtmlDecode(string s, TextWriter output);

        string HtmlEncode(string s);

        void HtmlEncode(string s, TextWriter output);

        string UrlEncode(string s);

        string UrlPathEncode(string s);

        void UrlEncode(string s, TextWriter output);

        string UrlDecode(string s);

        void UrlDecode(string s, TextWriter output);
    }
}